package com.travelsky.zqq.demo.Service.Impl;

import com.travelsky.zqq.demo.Dao.UserDataGeter;
import com.travelsky.zqq.demo.Service.welcome;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class welcomeImpl implements welcome {
    @Autowired
    UserDataGeter udao;
    @Override
    public String sayhello(Integer id) {
        return udao.getUserById(id).getName();
    }
}
